package com.heima.create;

import java.security.PublicKey;

public class MethodDemo1 {
    public static void main(String[] args) {
        //目标：学习方法的完整定义格式，并理解其调用和执行流程
        print();
        int rs = add(100, 200);
        System.out.println("和是" + rs);

    }

    public static int add (int a , int b) {
        int c = a + b;
        return c;

    }

    public static void print(){
        System.out.println("Hello World");
        System.out.println("Hello World");
        System.out.println("Hello World");
    }
}
